<?php

namespace App\Api\Requests;

class VerificationCodeRequest extends FormRequest
{

    public function rules()
    {
        return [
            'mobile' => 'required|string',
        ];
    }

    public function attributes()
    {
        return [
            'mobile' => '手机号',
        ];
    }

    public function messages()
    {
        return [
            'mobile.required' => '手机号不能为空',
        ];
    }
}
